package com.wywah.yunduo.security.supports.client;

import org.springframework.lang.Nullable;
import org.springframework.security.authentication.AbstractAuthenticationToken;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.oauth2.core.ClientAuthenticationMethod;
import org.springframework.security.oauth2.server.authorization.client.RegisteredClient;

import java.util.Collection;
import java.util.Map;

public abstract class YunduoAbstractAuthenticationToken extends AbstractAuthenticationToken {

    public YunduoAbstractAuthenticationToken(Collection<? extends GrantedAuthority> authorities) {
        super(authorities);
    }

    public Object getPrincipal() {
        return null;
    }

    @Nullable
    public Object getCredentials() {
        return null;
    }

    @Nullable
    public RegisteredClient getRegisteredClient() {
        return null;
    }

    public ClientAuthenticationMethod getClientAuthenticationMethod() {
        return null;
    }

    public Map<String, Object> getAdditionalParameters() {
        return null;
    }

}
